package cn.com.hatech.blog.config.mybatis;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @projectName: hatech-blog
 * @package: cn.com.hatech.blog.config.mybatis
 * @className: MyBatisPlusConfig
 * @author: xuruikai
 * @description: mybatis-plus 公共配置
 * @date: 2020/1/11 14:27
 * @version: 1.0
 */
@Configuration
@MapperScan("cn.com.hatech.blog.module.**.mapper")
public class MyBatisPlusConfig {
    /**
     * 分页配置
     *
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
